package com.jkhan.demo.design.decorator;

/**
 * @ClassName ShapeDecorator
 * @Description
 * @Author hjk
 * @date 2022/10/22 14:01
 * @Version 1.0
 */
public abstract class ShapeDecorator implements Shape {
    protected Shape decoratedShape;

    public ShapeDecorator(Shape decoratedShape) {
        this.decoratedShape = decoratedShape;
    }

    public void draw() {
        decoratedShape.draw();
    }
}
